package com.itheima.goods.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface DishFlavorMapper {

    /**
     * 根据菜品id删除对应菜品的口味
     * @param dishId
     */
    void deleteByDishId(Long[] dishId);

    /**
     * 根据菜品id删除口味
     * @param dishId
     */
    @Delete("delete from dish_flavor where dish_id=#{dishId}")
    void deleteById(Long dishId);
}
